package com.first.hms.mapper;

import com.first.hms.entity.Staff;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * 员工服务 (Staff)
 * 方法：
 *
 * addStaff (Staff staff)：添加员工
 * updateStaff (Staff staff)：更新员工身份
 * selectStaff (Staff staff)：查询所有员工、员工登录、核验身份
 * deleteStaff ()：删除员工*/
@Repository
public interface StaffMapper {
    public int addStaff(Staff staff);
    public int updateStaff(Staff staff);
    public Staff selectStaff(Staff staff);
    public ArrayList<Staff> selectStaffs();
    public int deleteStaff(Staff staff);
}
